// 主页面
import Main from '../components/Main.vue';
// 控制面板
import Dashboard from '../view/Dashboard.vue';

// 文章列表
import ArticleList from '../view/Articles/List';
import TagList from '../view/Articles/TagList';
import ArticleArchive from '../view/Articles/Archive';
import articleEdit from '../view/Articles/Edit'

//友情链接管理
import LinkList from  '../view/Link/List';

// 用戶列表
import UserList from '../view/Users/List';

// 项目管理
import projectColumn from '../view/Project/Column';
import projectList from '../view/Project/List';

//个人介绍
import Personal from '../view/Personal';

// 登录
import Login from '../view/Login.vue';
// import ResetPwd from '../view/ResetPwd';

// 评论列表
import CommentsList from '../view/Comments/List';

// 设置页面
import Settings from '../view/Settings/Index';

export default [
    {
        path: '/',
        redirect: '/dashboard',
        component: Main,
        children:[
            {
                path: '/dashboard',
                meta: { title: "控制面板"},
                component: Dashboard
            },
            {
                path: "/article/list",
                meta: { title: "文章列表" },
                name: "ArticleList",
                component: ArticleList
            },
            {
                path: "/article/tag_list",
                meta: { title: "标签列表" },
                name: "TagList",
                component: TagList
            },
            {
                path: "/article/archive",
                meta: { title: "文章归档" },
                name: "ArticleArchive",
                component: ArticleArchive
            },
            {
                path: "/article/edit",
                meta: { title: "文章编辑" },
                name: "articleEdit",
                component: articleEdit
            },
            {
                path: "/link/list",
                meta: { title: "友情链接列表" },
                name: "LinkList",
                component: LinkList
            },
            {
                path: "/personal",
                meta: { title: "个人" },
                name: "Personal",
                component: Personal
            },
            {
                path: "/userlist",
                meta: { title: "用户列表" },
                component: UserList
            },
            {
                path: '/project/column',
                meta: { title: "项目栏目"},
                component: projectColumn
            },
            {
                path: '/project/list',
                meta: { title: "项目列表"},
                component: projectList
            },
            {
                path: '/comments/list',
                meta: { title: "评论列表"},
                component: CommentsList
            },
            {
                path: '/settings',
                meta: { title: "设置中心"},
                component: Settings
            }
            // ,
            // {
            //     path: '/ResetPwd',
            //     meta: { title: "重置密码"},
            //     component: ResetPwd
            // }
        ]
    },
    {
        path: '/login',
        name: 'Login',
        meta: { title: "登录"},
        component: Login
    },
]
